package com.example.demo3.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author allnas
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
@Documented
@Inherited
public @interface Crypt {
    Algorithm algorithm() default Algorithm.AES;

    enum Algorithm {
        AES,
        SM4;

        private Algorithm() {
        }
    }
}
